Add encoding information to spec

This prevents the test from failing in some enviroments