Bug: Messages with reserved key names cannot encode

I've added a failing test to demonstrate the issue.