[ruby-core:123899] [Ruby Bug#21709] Inconsistent encoding by Regexp.escape