better differentiation between unicode and utf-8