url: Added size_t cast to pointer based length calculations