Django 1.4 compatibility

This is a less robust way of forcing to bytes, but that's fine,
because the output of nevercache_token() is under our control.