rsc: Improved handling of bad data