Fix resp.text Unicode issues and a timezone-dependent test

This changeset makes the AJAX response to delete requests and the 404 response for nonexistent sessions return correctly instead of crashing, adds a bit of test coverage for those requests, and fixes a backend test that failed for me when I ran the suite.