added log method for std::string; dded UNICODE/ANSI str functions defines