Aside from fixing the units, which mixed binary and metric inadvertently, this commit adds an interface to a third-party library that handles the conversion much more elegantly and provides flexibility for future needs of a similar nature.