This sounds like a very weird error relating to noquoting of the hidden form variables. Are you sure you installed a fresh version of OpenACS 5.1 or is that some kind of upgrade where maybe a part of acs-templating is still older?
Do you have a public url where this behaviour can be seen?