tune pgsql8_index dimension quoting

only quote when it is a valid identifier

using refactored format::is_valid_identifier()