fix quote encoding issues