Specify UTF-8 as the explicit charset for OutputStreamWriter in the version 2 library

This silences a FindBugs warning and matches the output format we use in the version 3 library.