<p>This should fix the problem of adding URLs into the add application form.</p>

<p>To test, create a gateway node and add applications with the following URLs (all should be accepted):</p>

<ul>
<li>127.0.0.1</li>
<li><a href="http://commotionwireless.net/test">http://commotionwireless.net/test</a></li>
<li><a href="https://127.0.0.1/testing">https://127.0.0.1/testing</a></li>
<li><a href="https://127.0.0.1:22/testing/123.html?foo=bar&baz=">https://127.0.0.1:22/testing/123.html?foo=bar&baz=</a></li>
</ul>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/commotion-lua-helpers encoding-returns</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/commotion-lua-helpers/pull/1'>https://github.com/opentechinstitute/commotion-lua-helpers/pull/1</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>fix encoding functions return values</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/commotion-lua-helpers/pull/1/files#diff-0">modules/encode.lua</a>
    (10)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/commotion-lua-helpers/pull/1.patch'>https://github.com/opentechinstitute/commotion-lua-helpers/pull/1.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/commotion-lua-helpers/pull/1.diff'>https://github.com/opentechinstitute/commotion-lua-helpers/pull/1.diff</a></li>
</ul>