3824 quote spaced table names

Proposed fix for issue #3824.