unicode: start properly handling Unicode based on defined UNICODE flag