fixed URL encoding/decoding problems with function parameters