         method = parsed.method
         path = parsed.path
         proto = parsed.proto
-        body = String.fromCString(parsed.buffer)!
+        body = parsed.buffer.map { c in
+            return UInt8(c)
+        }
     }
 
 }

    public let method: String
    public let path: String
    public let proto: String
    public let body: String

    init(bytes: [CChar]) {
        let parsed = HTTPRequestParser(raw: bytes)

    var method: String
    var path: String
    var proto: String
    var body: [UInt8]

    class State {
        var mode = Mode.First
