Use general logger instead of cout

Added ConvertUTF (needed for SimpleIni)