Apostrophes are hyphens, how to convert?

$replace(%_filename%,Can-T,Can''t)
with a duplication of the apostrophe should work.
(see Probleme mit Wörter ersetzen