Fix test using ASCII code for Ruby < 2.0.0