URLencode the target URL properly