title: How to encode URL in Groovy?
body: <p>Is there a kind of URLEncode in Groovy?</p>
  
  <p>I can't find any String → String URL encoding utility.</p>
  
  <p>Example: <code>dehydrogenase (NADP+)</code> → <code>dehydrogenase%20(NADP%2b)</code></p>
  
  <p><i>(<code>+</code> instead of <code>%20</code> would also be acceptable, as <a href="http://www.opinionatedgeek.com/dotnet/tools/urlencode/Encode.aspx">some</a> implementations do that)</i></p>