Rescuing Uncorrectable Fault Patterns in On-Chip Memories through Error Pattern Transformation