Index: /applications/editors/josm/plugins/gpxfilter/build.xml
===================================================================
--- /applications/editors/josm/plugins/gpxfilter/build.xml	(revision 26470)
+++ /applications/editors/josm/plugins/gpxfilter/build.xml	(revision 26471)
@@ -32,5 +32,5 @@
     <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835"/>
+    <property name="plugin.main.version" value="4282"/>
     <!--
       ************************************************
@@ -148,8 +148,8 @@
     </target>
     <!--
-    ************************** Publishing the plugin *********************************** 
-    -->
-    <!--
-        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
         ** property ${coreversion.info.entry.revision}
         **
@@ -197,15 +197,15 @@
     </target>
     <!--
-        ** commits the plugin.jar 
+        ** commits the plugin.jar
         -->
     <target name="commit-dist">
         <echo>
     ***** Properties of published ${plugin.jar} *****
-    Commit message    : '${commit.message}'                    
+    Commit message    : '${commit.message}'
     Plugin-Mainversion: ${plugin.main.version}
     JOSM build version: ${coreversion.info.entry.revision}
     Plugin-Version    : ${version.entry.commit.revision}
-    ***** / Properties of published ${plugin.jar} *****                    
-                        
+    ***** / Properties of published ${plugin.jar} *****
+
     Now commiting ${plugin.jar} ...
     </echo>
Index: /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/EGpxLayer.java
===================================================================
--- /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/EGpxLayer.java	(revision 26470)
+++ /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/EGpxLayer.java	(revision 26471)
@@ -18,4 +18,6 @@
 import java.awt.geom.Rectangle2D;
 import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
 import java.text.DateFormat;
 import java.util.ArrayList;
@@ -123,5 +125,5 @@
                         data.mergeFrom(newData);
                     }
-                    
+
                     if (!EGpxLayer.this.painting) {
                         Main.map.repaint();
@@ -934,5 +936,10 @@
      */
     private void importAudio(File wavFile, MarkerLayer ml, double firstStartTime, Markers markers) {
-        String uri = "file:".concat(wavFile.getAbsolutePath());
+        URL url = null;
+        try {
+            url = wavFile.toURI().toURL();
+        } catch (MalformedURLException e) {
+            System.err.println("Unable to convert filename " + wavFile.getAbsolutePath() + " to URL");
+        }
         Collection<WayPoint> waypoints = new ArrayList<WayPoint>();
         boolean timedMarkersOmitted = false;
@@ -1103,13 +1110,5 @@
             }
             double offset = w.time - firstTime;
-            String name;
-            if (w.attr.containsKey("name")) {
-                name = w.getString("name");
-            } else if (w.attr.containsKey("desc")) {
-                name = w.getString("desc");
-            } else {
-                name = AudioMarker.inventName(offset);
-            }
-            AudioMarker am = AudioMarker.create(w.getCoor(), name, uri, ml, w.time, offset);
+            AudioMarker am = new AudioMarker(w.getCoor(), w, url, ml, w.time, offset);
             /*
              * timeFromAudio intended for future use to shift markers of this type on
