core: change string hooks to buffer hooks
core: change string hooks to buffer hooks