diff --git a/lib/fko_encode.c b/lib/fko_encode.c
index c92d421..ae4c0b5 100644
--- a/lib/fko_encode.c
+++ b/lib/fko_encode.c
@@ -111,6 +111,7 @@ fko_encode_spa_data(fko_ctx_t ctx)
         free(tbuf);
         return(res);
     }
+    tbuf[strlen(tbuf)-2] = 0x10;
 
     /* Add the timestamp.
     */
