use force_encoding to maintain ruby 1.9.3 compat but also work with ruby 2.0