You can use ep.copyasstringref here.