Modified the encode to UTF-8.