parse_delimiter_command used str slicing (line[..10]) which panics on non-char boundaries when the buffer contains multi-byte UTF-8 characters. Also fixed DELIMITER detection to check only the last line of the buffer instead of the entire accumulated content.