The author encountered unexpected behavior while searching for file names using the 'find' command in a shell script.
By default, the output of the 'find' command contained invisible null characters after each file name, causing issues in subsequent operations.
To fix the issue, the author used the 'strings' command to extract ASCII strings from the input, effectively splitting the string of file names into individual names.
For those without the 'strings' command, the author suggests using 'sed' to replace the null characters with newlines.