Escaping bugfix

Currently minitest-ci doesn't handle single quote characters in testsuite / testcase names correctly.  This patch fixes it for me, with the caveat that `String#encode` requires Ruby >= 1.9.3.