This should have a clearer name, at least indicating it takes a unicode object. 

"pstrdup" is misleading, since it isn't just duplicating a string - it is actually doing a transformation of an existing object.