Bugfixes to TMS view.

View now does not allow "-" in the table name; also checks whether
there is actually a table name.

View now allows and empty string as the default value for unicode
fields. Also, now accepts empty strings when editing unicode fields
and supplies the default value for it before saving.