Support international characters in formatter

Use StringWriter instead of ByteArrayOutputStream so Unicode characters won't become ????s.
Merge pull request #98 from tiberiusteng/patch-1

Support international characters in formatter