minor bug fixes with encoding utc-8