Merge pull request #560 from EmersonPrado/coerce-regex-bytes

[Issue #558] Coerce compiled regex patterns type according to spawn encoding