Fixes problems with creating field names with spaces and other characters.