Adds encoding properties to remove warnings.