add RFC103 layer->encoding implementation (#4758)