handle relative endpoints. fully qualify them with the target scheme and host