Format file references.