fixed broken non-unicode build