Prevent crashes when the sound file cannot be found
Get file paths properly from QUrl for XQueries.
Debug function for WritingSystem
Formatting patch
Added code for debugging.