Implement the expensive part of DataOutputStream::writeUTF in JS. Fixes #328
Merge pull request #623 from marco-c/DataOutputStream_writeUTF

Implement the expensive part of DataOutputStream::writeUTF in JS