Fix ArgumentError:invalid byte sequence in US-ASCII on ruby1.9

travis-ci #15 failed