Extended on the previous commit's fix to quote.rb

Previous commit solved the issue, so my theory was correct. This applies it to quote.rb now.