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