Fix OS X Encoding test

What was the error here?  What happens if the encoding is necessary?