Update gemlock and clear text encoding issues