Possibility to pass in localized hash for misc character replacement

I used the idea from a previous issue, but changed to replace hash keys instead.