encode/decode shortstr as utf-8, leave longstr as bytes