Fix OS X Encoding test

I'm not sure if this is the error. I can't reproduce it locally. I took an educated guess because the error is only showing up a on Jenkins. Locally, my mac passes on both 3.3 and 3.4 which is where the errors are occurring on Jenkins.