Encode url parameters and added demo config, fixes #5