fixed a few bugs
fixed a few encoding errors.