Fixes regex conversion failure when installed on PyPy.

Hi there,

This pull request fixes #282. /cc @elsigh