SASHIMI-375 - Applied fix to output_compressed also.  Moved utility function to util.cpp.
Merge branch 'feature/SASHIMI-375' into feature/extend-support-subweave