Without writing your own code, take advantage of the Providers Kentico offers.
string username = CMS.SiteProvider.UserInfoProvider.GetUserInfo(ValidationHelper.GetInteger(Eval("FileCreatedByUserId"), 0)).UserName;
This will work perfect within your transformation.