Coding for a facsimile signal