In log_error(), assert that escaped characters get logged completely or not at all.