Fix for the terminus to stringify version per spec, added defensive conversion code in the back end.

Changed export to use version 3 explictly, rather than the latest version (will update as part of another ticket)