Add character escaping tests