HexConverter refactoring