Controlling default regex encoding.