escape empty bytes
correct escape_date(), escape_datetime() before year 1900