quatation bug fixed by using codecs module