Fix bug with unencoded string