Encoding the label if it comes from the sqlite file