Resolve the following issues. - Crash reading a string from uninitialized memory when the default font directory was not found. Fall back to the BKE_appdir_folder_default_or_root in this case. - Memory leak when reading from the default font directory. - Failure to ensure a trailing slash for the preferences font directory. - Buffer overflow writing a trailing slash past the allocated size.