Provide a string literal-valued alternative to the final switch case.

This corresponds to commit 5a17b4dd29 on the master branch.