Added workaround for '.' characters in keys when using the MongoDB backend.