I imagine there's a smarter way to do this than just assuming `utf8` encoding… maybe pulling it out of the environment?  Anyway, this works for me on OS X and on a CentOS VM.