Convert file mode numeral to a convenient object describing file permissions