Thanks, Horstl. And the $utfdecode does work to output the correct macrons: ā ē ī ō ū