fix char escaping