fix HTTP-violating excess whitespace in write_error output