JBIDE-15317 - LiveReload script injection corrupted html encoding

Using Charset configured in Eclipse when reading local files.
Fallback to UTF-8 if charset is unknown
Fixed the "content-length" response header value
Also, the returned content is encoded with the charset provided in the request's
"accept" header.