Fixed 1.8 compatibility

Fixed String#% compatibility with 1.8