[rest] read and write representation with utf-8, fixes #2