Port improved SSE encoding

Issue #6 new
Marshall Pierce repo owner created an issue