r9122: cope with trailing garbage in POST contents in the web server