Fix symbol DoS check

The check was having problems with code like:

```ruby
:"#{whatever}"
```