changed encode-path to use URLEncoder and replace + with %20 for spaces - fix for issue #21 in neocons