Which was resulting in file URL hosts not being correctly percent decoded.
strip_trailing_spaces_from_an_opaque_path()