Backwards compatible remove_double_slashes replacement