Added length function, for determining size of strings. 

It may work on other objects that support __len__ and len() in python
When decoding data from the file_server you can specify the exact mime_type rather than relying on auto detection.