codec api in diatomic modified to allow for utf8 encoding of JSON encoded strings
messages sent over webosckets are now encoded into a JSON string and then encoded into UTF8 bytes. The process is reversed for messages received