`data` should always be a string. Naming it `filepath` might be better too.