Fix encoding issue and update minimum Ruby version to 1.9.3