Added preserve_data to the sandbox decoder

This enables the use of the preserve_data option with a sandbox decoder.