URLEncoder encode space to %20 code example Example: encode plus sign in url body=Hi+there%2bHello+there