converting binary message format