Make sure url is a string and not bytes in Request