Fix a bug in the `logtalk_tester.sh` POSIX shell script where the reported test numbers would not be accurate due to text encoding issues resulting from the current locale and the logging of failed test results