fix enforce_valid_utf8 spec test to pass with ruby 1.8.7