Use URLEncoder instead of Uri.encode