Fix Unicode bug

This way documents containing unicode can be decoded and uploaded
to the pastebin.