update and pin gem dependencies
standardize file headers and utf-8 fixes