stringifies booleans to keep session storages happy