cast parameters to unsigned char and terminal localhost regex without domain
Merge pull request #27 from juryben/master

cast to unsigned char and environmental var