lib/standard/string: Added copy_to_native method to Text