Strings containing escape chars are not properly translated

This currently fails because escaping is applied before translation. Meaning untranslated strings as the msgids in the ,po files don't match what gets sent to the translate function :(

Unfortunately I only have time right now to provide a failing test case, will look for the bug if time allows and no-one gets there first...