Replaced _PyUnicode_AsString() with pair of
PyUnicode_AsUTF8String() and PyBytes_AsString()

Signed-off-by: Mikhail Durnev <Mikhail_Durnev@mentor.com>