fixing bug: urlencode for special characters