Added encoding property to fix warnings.