Allow spaces in form names.

This patch replaces spaces in form names if any with _ for constructing IDs