Replace hash sign with an HTML entity