Fixing quoted chars the right way