Quote reference names while fetching with curl.