Added some breathing space to the code in utils.rb

Just cleaned up the code a little. Also shortened the line that creates random characters by using a combination of ranges, to_a and join.

Was also looking through the IRB code to check out an implementation detail and found the code quite hard to read so have amended indentation, swapped out large quoted arrays for %W and replaced long multiline blocks with do rather than brace style.