utf-8 encoding param values for id string, fixes #37