Fix characters escaping