Fix character escaping.