used ENT_IGNORE flag to ignore non UTF-8 characters in error messages and file paths