Add encoding string to support 1.9.3