try to encode url