Use bytes length for content-length instead of string length

When response text contains for example cyrillic letters - then the content-length of response is not the same as length of string, so we should use length of byte array.

Also I noticed that there is contentType field in View class, but it is not used.