Oops. The problem was that I didn't have "'s around the badchars. Changed '\x00...' to "\x00..." and it works fine. Sorry for wasting the list's time! -Reth On Sun, Jul 01, 2007 at 04:51:08PM +1000, Reth wrote: > Excluding the bad characters, which I removed, all the data is there.