encoding maze text to/from a MazeMap