Add ruby encoding for ruby code samples