Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I ran in to issues with a question mark in an EEM script as well. I ended up escaping the question mark with \x16 (the hex for Control-V).
So http://www.company.com/test.php?serial=1111 would be http://www.company.com/test.php\x16?serial=1111
The static entries should be saved in the switch configuration. Do you see them shown in the running configuration? Have you saved them to the startup configuration?