Encode greater than and less than symbols