Unescape the curl argument for gi function