Remove an if statement related to encoding

Since we are dropping support for 1.8.x, String.respond_to?(:encoding)
is true so the tests will always run