typecast uuid to avoid blank string inputs

I know I need tests, I just wanted to demonstrate the change, maybe someone can add them for me? I've never written tests for the rails core so would need to read up on exactly how they should be done.

Ref #11902