FixRM #8396 change all lib use of regex to 8-bit pattern