added more tests for url encoding, problems remain