The chestiest encoding ever, but it works. All files are now handled properly, hopefully :V