Fix OS X Encoding test