fix incorrect extensions on stored files