rest api character encoding