force encoding on some strings for ruby 2.0.0