Status code in header & fix encoding errors