Fallback to UTF-8 encoding in case when mime.charsets.lookup returns undefined.

Summary: This solves issue when javascript files are not served with UTF-8 because their content type is application/json and mime.charsets.lookup return UTF-8 only for files that match /^text\// regex