Update PrimitiveObjectsWriter.cpp

fixed issues with pdf syntax characters used in names