Improve the encoding for Labels to account for
special characters.