improving unicode handling

The html strings were not being encoded properly, now they are
standardized to return utf-8.