Fixed formatting for file objects