Add character escaping