[BUGFIX] BasicFileUtility uses deprecation API in a wrong way