fixes A8R8G8B8 FSH encoding
improves hex string creation
fixes broken DbpfFile renaming

If the file already exists, DbpfFile.write failed in Windows due to
unreliable renameTo method of java.io.File. The current implementation
should be more reliable, but has flaws, too, which might lead to loss of
data, in rare cases.