Handle encoding issues with fixed-length records