Perhaps it would be better to not allow certain characters in the table prefix.