Improved utils_http:secure_path function.