Fixed quotes bug

Fixed thrown Exception for non-US-ASCII char.