Could we just do `u'id: ...'.encode('utf-16be')`?