Resolved an encoding problem when on Ruby1.9