Normalize path when generating public or temporary url