a bit code sanitisation