Fixes filename issues.