Text Drag and Drop weird characters appended to the end of string

I'm trying to setup a drag and drop scenario for a list, where it will
only be used to reorder the list and requires no interaction with
anything outside of the list.

Using the examples from http://wiki.wxpython.org/ListControls I have
constructed a list that can be reordered by dragging and dropping.

There is, however, a weird issue. When the character count of an item
is 6 it works fine. But whenever the character count is 7, there are
random characters appended to the end of the string that is returned.
I noticed there is code in the process that says it "cleans" the
string, but it still leaves any random characters that were actually
numbers or letters.

This will not work for me, because I need the string to stay the same.

This can be reproduced by using the same code from the first drag and
drop example but changing the items names.

I have the string list as this:
items = ["shot_%s" % x for x in xrange(30)]

For the strings in the list that are shot_0 - shot_9, it works fine
whenever you drag and drop. But for the rest of the strings, there are
other characters at the end of the string.

How can I not get these characters whenever I am dragging and
dropping? Whenever the PyTextDataObject is created with the text, I
can get the text from it exactly as it should be. But whenever I get
the text from the PyDropTarget, it has the characters.