fixes a problem with email addresses having a single quote in them, also fixes some rare problems with some of the timestamp methods