MERLIN <-> text conversion utility