fixed encoding bug on target url