Fixes #1638: prevent table names from being enclosed within curly brackets twice.