Added FileUtilities and used it for ResourceUtilities. Removed some unnecessary BS from TextUtilities.