add 'name' argument back to LD_STRING_OR_BUFFER_TO_SLICE