Switch to using Buffer instead of strings.