Quick test case:
This one is creates an ok map file, I can create the tree:
module test;
void main()
{}
With this one, treemapgen fails:
module test;
import std.stdio;
void main()
{}
rdmd treemapgen.d test.map test.json
std.utf.UTFException at std\utf.d(637): Invalid UTF-8 sequence (at index 57950)