Form validation: Improved compatibility with name attributes containing periods (fixes #5018)