That will almost certainly preserve the invisible characters. Most invisible characters are used for some kind of in-line formatting in Unicode, so it's not desirable to remove them.
But I guess there are tabs and line return/carriage returns, so there's that.