Rubygems has some encoding issues on opsworks.

This change was copied from a similar change made to the
opsworks_rubygems cookbook.

Change-Id: I0cd5e23b9d2a4a61c60aa5422d0386629e3b12d0