Make the tia map conversion more portable