(cherry picked from commit 264b5160c2099f1aab6f06ece720de984ea994b2)
strip_trailing_spaces_from_an_opaque_path()