fixes #11 -- force encoding for Mac

FileWriter constructor uses 'default encoding'. This is utf-8 for me on
linux, but seems to not be on other platforms (i.e. Mac). This forces UTF-
8 encoding.