Fix chart state encoding to match salesforce1 update