Safer job unserialization