Allowing dashes in IDs could be possible, but I am wondering if this would not cause some issues, because dashes are already used in relations (arrows).
For example, today, this simple example is working:
@startuml
a-b
@enduml
Because the dash is taken as a relation between a and b.
So I understand the advantage the use raw UUID for generating diagram, so we may consider this change, even if it would have some impact on existing diagrams (like my simple example).
Another option for you could be to replace dashes by underscore, ie using 0a32611c_624c_4a84_9e2d_348aa95f9726 instead of 0a32611c-624c-4a84-9e2d-348aa95f9726.
Since you are already doing text processing, this should not be a big deal.
What do you thing about it ?