correctly escaping some chars