Prototype code for wide-char support