fixing URL encoding bug--URL decoding links before making request