64-bit difference. 32-bit ruby? I suspect this due to your observation
an error occurred overflowing the symbol table after loading about 2 million key-value pairs
If so, there is nothing you can do about it, but using your own ruby 64-bit assembly if strings are not an option due to application design. Otherwise, you have to go with the lines. The conversion is simple:
:symbol.to_s == "symbol" "symbol".to_sym == :symbol
source share