Simple Scala swing application to encode / decode URLs