A header field will be saved to MongoDB only when it can be decoded to UTF-8 - fix for bson.errors.InvalidStringData exception when a field cannot be decoded to UTF-8.