Properly escape buffer contents