Fix filename generation from character