unicode_to_string: Support UTF8LE without BOM. Adds an optional second argument to unicode_to_string() to specify the default byte order (an initial BOM in the input string overrides this argument).