refactor WelsEncodeNal