added boundary validation
added explicit string content cast
added explicit ByteArrayContent cast
added explicits