Handle leading and trailing slashes on path-related arguments. #3