Browser Binding: Encode properties as utf-8

Fixes testCreateDocumentUnicode