Fix control characters escaping with Dialect and utf-8 encoding for properties