shell escape this datastore option before concatenating. `datastore['SNAP_FILETYPE'].shellescape` should do it.