Improve ResourceToFileMapper.toString