move util class from core, since this will likely be tika or libmagic in the future