write_chr() method moved to mapping module