fix for non-unicode build