Spec for regression of temp file encoding error