Fixed "no data" case when an encoding is specified