Handle non-string mode names in buffer list.