URLEncode encode target name to prevent url injection