Changed the function call in urlopen()

We now is PyString_AS_STRING() to avoid NULL truncation.