Fix URL encoding, convert int's to strings correctly
Don't be so verbose in local variable names