bytes.decode called before the re.sub, not after