Fix bug in Writable

When encoding a String, UTF-8 was used regardless of the specified charset.