invite: encode url data before posting it. closes #1285