md encoding