Updated the bit-converter.

This is a copy of the file from "hosted" branch on the original
repository. The commit ID is: ecaf557d2cb72125125c571b1df5cd4214af4c5f