May be better called `parse_path_string` or similar?