Prevent field names to contain bad characters (fixes #134)