I found that the massaging of the values is happening because of the line:
$attr = array_map('sanitize_title', $attr);
in wp-content/plugins/insert-php/includes/shortcodes.php. You can comment that line out, and the custom attribute values will not be changed.