FPCommand: convert newlines before saving

Commands submitted via the web form may end up with \r\n newlines, which breaks bash scripts. This converts \r\n to \n at the time the data is saved to the database.

Fixes #6512.