exporter: Convert characters to glyphs before passing to custom_data

This closes #117.