@classmethod
def _encode_markdown(cls, message):
    """Make transformations to the message prior to rendering as Markdown.

        The main thing is to convert spaces to non-breaking spaces, so that
        plaintext spacing is preserved.
        """
    md_message = message.replace(' ', '&nbsp;')
    return md_message
