Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/
It assumes the given string has no prolog. If the string is unicode, it will be UTF-8 encoded and a prolog with a UTF-8 encoding declaration will be added. If the string is a regular byte string, then a prolog with no encoding declaration will be added.