Use URI::join to join url parts.