s been introduced in java 1.4, so
 Ant cannot use it (except by reflection) <!-- XXX no longer true -->
 FileUtils.toURI() cannot be used by Locator.java
 Implemented this way.
 File.toURL() adds file: and changes '\' to '/' for dos OSes
 encodeURI converts characters like ' ' and '#' to %DD</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the file to convert</dd>
<dt><span class="strong">Returns:</span></dt><dd>URL the converted File</dd>
<dt><span class="strong">Throws:</s