Move text conversion to text_value, fixes #103