fix special characters escaping