Allow collection of field names with special characters

This avoids mongo blowing up when characters that are not valid in
variable names are used in field names.

This should unblock #121