Why do you want to specialize it? Why not make it general, and predefine a specialized case that uses chars?

Sorry if that does not help, just a thought.