Fix possible UnicodeDecodeError in Vocabulary.getValue.