Added escaping of unicode text input of ASCII control characters and extended characters as per #551.