1 # frozen_string_literal: true
3 # Some versions of ruby seem to accidentally force the encoding
4 # as part of normalize_path and some don't
9 def normalize_path(path)
10 super.force_encoding("UTF-8")
16 ActionDispatch::Journey::Router::Utils.singleton_class.prepend(OpenStreetMap::Router::ForceEncoding)