"w" is needed on POSIX, but "wb" is needed on Windows.
Switch visitor class over to formatter instead of toString. Fixed #28
merged