support uu encoding

fixes #755 

@jeremy @bf4 @mikel 
@jeremy @mikel Are you ok with having this implemented here as above?