This has to do with the encoding of the document you receive and i always find playing with encodings a bit tricky.
Try to figure out what encoding the Quark file is in (from what platform is it?) and then convert it to an encoding perl can handle (preferably Unicode encoding UTF-8).