implement createChar (with helper options) and fix `write(int)`