Replace if chain with switch in MMDB_strerror